package user;

public class Teacher extends User {
    private String subject; // 教授科目

    public Teacher() {
        super();
    }

    public Teacher(int id, String username, String password, String email, String subject, String usertype) {
        super(id, username, password, email, usertype);
        this.subject = subject;
    }

    public Teacher(String username, String password, String subject) {
        super(username, password);
        this.subject = subject;
    }

    // Getter 和 Setter
    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }
}
